
/**
 * https://blog.csdn.net/qq_28098067/article/details/51038469
 */
#include "iostream"
#include "vector"
#include "fstream"

using namespace std;
const char *p="t.txt";
int main(){
    ofstream fout(p);
    if(fout.is_open()){
        for(int i=0;i<10;i++){
            fout<<i<<endl;
        }
        fout.close();
    }
    return 0;
}